package com.huixuebao.exchange.service;

import com.huixuebao.common.bean.ApiResult;
import com.huixuebao.exchange.dto.CategoryDTO;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
public interface CategoryService {

    ApiResult<List<CategoryDTO>> listAllCategoryByPid(@RequestParam("pid") String pid);

    ApiResult<List<CategoryDTO>> categoryTree();
}
